@include('header')
<link rel="stylesheet" href="{{asset('css/download/download.css')}}" />
<link rel="stylesheet" href="{{asset('css/download/layer.css')}}" />
<script type="text/javascript" src='{{asset('js/jquery.js')}}'></script>
<script type="text/javascript" src='{{asset('js/layer.js')}}'></script>


{{--
<style type="text/css" media="screen">
	html,body{width:100%;height:100%;}
	.content {
		height:100%;
		background-image: url({{asset('css/img/download1.png')}});
		background-position: top center;
		background-repeat: no-repeat;
		background-attachment: scroll;
		background-size: cover;
		text-align: center;
	}
	.download-wrap{position:absolute;bottom:.8rem;width:4.16rem;margin-left: -2.06rem;left:50%;}
	.download-wrap .down{display:block;width:4.16rem;height:1.12rem;
		background-position: top center;
		background-repeat: no-repeat;
		background-attachment: scroll;
		background-size: cover;
		border:solid 1px #e11426;
		border-radius: 5px;
	}
	.down.ios-download{background-image: url({{asset('css/img/ios.png')}});margin-bottom: .45rem;}
	.down.android-download{background-image: url({{asset('css/img/android.png')}});}
	.share img{width:100%;height:100%;}
</style>
--}}



<div class="content">
	<div class="download-wrap">
		<a download-url="{{asset('download/huicheng_test.apk')}}" class="ios-download down js-download"></a>
		<a download-url="{{asset('download/huicheng_test.apk')}}" class="android-download down js-download"></a>
	</div>
</div>

<script type="text/javascript">
	function is_weixin(){
		var ua = navigator.userAgent.toLowerCase();
		if(ua.match(/MicroMessenger/i)=="micromessenger") {
			return true;
		} else {
			return false;
		}
	}

	$('.js-download').click(function () {
		if(is_weixin()) {
			layer.open({
				shadeClose: false,
				type: 1,
				content: '<div class="share"><img src="{{asset('css/img/APPopen.png')}}" alt=""></div>',
				style: 'position:absolute;top:0;margin-left:-2.51rem;left:50%; width: 5.15rem;heigh:3.31rem; border:none;background:transparent'
			});
		}else{
			var download_url = $(this).attr('download-url');
			window.open(download_url);
		}
	});
</script>